package cn.com.gof.behavior.ChainOfRos;

/**
 * <p>Title: Leader</p>  
 * <p>Description: </p>  
 * @author WangJun
 * @date 2018年9月7日 下午4:00:36
 */
public abstract class Leader {
	protected Leader nextLeader;
	
	protected String name;
	
	/**
	 * @param name
	 */
	public Leader(String name) {
		super();
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setNextLeader(Leader nextLeader) {
		this.nextLeader = nextLeader;
	}
	
	public abstract void handRequest(LeaveRequest leave) ;

}
